<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:c="http://java.sun.com/jstl/core">

<h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Welcome to Car Rent Inc</title>
</h:head>
<ui:composition template="/templates/frame.xhtml">
        <ui:param name="activeIndex" value="-1" />
        <ui:define name="page">
                <c:set var="client" value="#{loginBean.message}" />
                <c:if test="${client != null}">
                        <h:outputText value="#{loginBean.message}" />
                </c:if>
                <form method="post" action="j_security_check">
                        <p:panel>
                                <f:facet name="header">
                                        <h:outputText value="Enter your details" />
                                </f:facet>
                                <h:panelGrid columns="2">
                                        <h:outputText value="Enter login: " />
                                        <input type="text" name="j_username" />
                                        <h:outputText value="Enter password: " />
                                        <input type="password" name="j_password" />
                                </h:panelGrid>
                                <input type="submit" value="Login" />
                        </p:panel>
                </form>
        </ui:define>
</ui:composition>
</html>
